Comparer Property

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Returns the IEqualityComparer<T> used to compare items in this bag.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public IEqualityComparer<T> Comparer{ get;}
Visual Basic (Declaration)
Public ReadOnly Property Comparer As IEqualityComparer(Of T)
Visual C++
public:
property IEqualityComparer<T>^ Comparer {
	IEqualityComparer<T>^ get ();
}

Field Value

If the bag was created using a comparer, that comparer is returned. Otherwise the default comparer for T (EqualityComparer<T>.Default) is returned.

See Also